import { lazy } from 'react'
const Home = lazy(() => import('../../views/Index/Home'))
const Store = lazy(() => import('../../views/Index/Store'))
const Procure = lazy(() => import('../../views/Index/Procure'))

const Enter = lazy(() => import('../../views/Index/Store/Enter'))
const Out = lazy(() => import('../../views/Index/Store/Out'))
const AddEnter = lazy(() => import('../../views/Index/Store/Enter/AddEnter'))
const AddOut = lazy(() => import('../../views/Index/Store/Out/AddOut'))
const Need = lazy(() => import('../../views/Index/Procure/Need'))
const Allocation = lazy(() => import('../../views/Index/Procure/Allocation'))
const ProcureList = lazy(() => import('../../views/Index/Procure/ProcureList'))
const AddProcureList = lazy(() => import('../../views/Index/Procure/ProcureList/AddProcureList'))
const AddNeed = lazy(() => import('../../views/Index/Procure/Need/AddNeed'))
const EditProcureList = lazy(() => import('../../views/Index/Procure/ProcureList/EditProcureList'))


export default [
    {
        path: '/index/home',
        element: <Home />,
    },
    {
        path: '/index/store',
        element: <Store />,
        children: [
            {
                path: '/index/store/enter',
                element: <Enter />,
            },
            {
                path: '/index/store/out',
                element: <Out />,
            }, {
                path: '/index/store/addenter',
                element: <AddEnter />,
            },
            {
                path: '/index/store/addout',
                element: <AddOut />,
            }
        ]
    }, {
        path: '/index/procure',
        element: <Procure />,
        children: [
            {
                path: '/index/procure/need',
                element: <Need />,
            },
            {
                path: '/index/procure/allocation',
                element: <Allocation />,
            },
            {
                path: '/index/procure/procureList',
                element: <ProcureList />,
            }, {
                path: '/index/procure/addneed',
                element: <AddNeed />,
            }

            , {
                path: '/index/procure/addrocureList',
                element: <AddProcureList />,
            }
            , {
                path: '/index/procure/editrocureList',
                element: <EditProcureList />,
            }
        ]
    },
]